home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xmcd-1.4 / cda.d / Imakefile < prev    next >
Encoding:
Makefile  |  1995-05-10  |  2.6 KB  |  116 lines

  1. /*
  2.  * @(#)Imakefile    5.10 95/02/06
  3.  *
  4.  * Imakefile for cda
  5.  *
  6.  *    cda - Command-line CD Audio Player
  7.  *
  8.  *   Copyright (C) 1995  Ti Kan
  9.  *   E-mail: ti@amb.org
  10.  *
  11.  *   This program is free software; you can redistribute it and/or modify
  12.  *   it under the terms of the GNU General Public License as published by
  13.  *   the Free Software Foundation; either version 2 of the License, or
  14.  *   (at your option) any later version.
  15.  *
  16.  *   This program is distributed in the hope that it will be useful,
  17.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  *   GNU General Public License for more details.
  20.  *
  21.  *   You should have received a copy of the GNU General Public License
  22.  *   along with this program; if not, write to the Free Software
  23.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  *
  25.  */
  26.  
  27.  
  28. /**** Optional defines:  Change as you see fit. *****************************
  29.  *
  30.  * -DBSDCOMPAT
  31.  *    Compiling under BSD-derived or BSD-like OS
  32.  *
  33.  * -DNO_STDLIB_H
  34.  *    The system does not support <stdlib.h>
  35.  *
  36.  * -DNOVISUAL
  37.  *    Build cda without the visual (curses) mode support
  38.  */
  39. #if defined(SYSTYPE_BSD43) || defined(BSD43) || defined(BSD) || \
  40.     defined(FreeBSDArchitecture) || defined(OsfArchitecture) || \
  41.     (defined(SunArchitecture) && OSMajorVersion == 4)
  42. DEFINES= -DBSDCOMPAT
  43. #else
  44. #if defined(XmacIIServer)
  45. DEFINES= -DUSG
  46. #else
  47. DEFINES=
  48. #endif    /* XmacIIServer */
  49. #endif    /* BSD FreeBSDArchitecture OsfArchitecture SunArchitecture */
  50.  
  51.  
  52. /*
  53.  * Add standard and local include paths
  54.  */
  55. #if (defined(SunArchitecture) && OSMajorVersion == 4)
  56. STD_INCLUDES=-I/usr/5include
  57. #else
  58. #if defined(LinuxArchitecture)
  59. STD_INCLUDES=-I/usr/include/ncurses
  60. #else
  61. STD_INCLUDES=
  62. #endif    /* LinuxArchitecture */
  63. #endif    /* SunArchitecture */
  64.  
  65. INCLUDES=-I..
  66.  
  67.  
  68. /*
  69.  * Add needed libraries
  70.  */
  71. #if (defined(SunArchitecture) && OSMajorVersion == 4)
  72. LOCAL_LIBRARIES=-L/usr/5lib -lcurses
  73. #else
  74. #if defined(LinuxArchitecture)
  75. LOCAL_LIBRARIES=-lncurses
  76. #else
  77. #if defined(FreeBSDArchitecture)
  78. LOCAL_LIBRARIES=-lncurses -lmytinfo
  79. #else
  80. #if defined(ultrix) || defined(__ultrix)
  81. LOCAL_LIBRARIES=-lcursesX
  82. #else
  83. LOCAL_LIBRARIES=-lcurses
  84. #endif    /* ultrix */
  85. #endif    /* FreeBsdArchitecture */
  86. #endif    /* LinuxArchitecture */
  87. #endif    /* SunArchitecture */
  88.  
  89.  
  90. /*
  91.  * C Source files
  92.  */
  93. SRCS=    cda.c \
  94.     visual.c
  95.  
  96.  
  97. /*
  98.  * Objects to build cda
  99.  */
  100. OBJS=    cda.o \
  101.     visual.o \
  102.     ../common.d/libutil.a \
  103.     ../libdi.d/libdi.a
  104.  
  105.  
  106. /*
  107.  * Build rule for cda
  108.  */
  109. #ifdef InstallProgram
  110. #undef InstallProgram
  111. #define InstallProgram(program, dest)
  112. #endif
  113. ComplexProgramTarget(cda)
  114.  
  115.  
  116.